<?php
namespace Tool\Controller;

use Think\Controller;
use Tool\Api\AesApi;
/**
 * Created by PhpStorm.
 * User: an
 * Date: 2015/9/7
 * Time: 10:44
 */
class TestAesController extends Controller{

    public function index(){
        /*$str='sdfasdfasdfasdfasdfsadfas';
        $key='aSGJLGYEWERWRREW4567i8o';
        $str1=AesApi::encode($key, $str);
        $str2=AesApi::decode($key, $str1);
        //$ddd='ppppp';
        //dump($ddd);
        dump($str);
        dump($str1);
        dump($str2);
        dump(rtrim($str2));*/
        dump("sdafasdfasdfasdfasdfasd");
        $ttt=apiCall(AesApi::ENCODE,array("sdafasdfasdfasdfasdfasd"));
        dump($ttt);
    }
}